Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.platform.forum.lifecycle--lifecycle

This contribution is part of XML component org.nuxeo.ecm.platform.forum.lifecycle inside nuxeo-platform-forum-core-6.0.jar

Extension Point

Extension point lifecycle of component LifeCycleService.

Contributed Items

  • <lifecycle defaultInitial="moderation_pending" name="post_moderation">
    
          <transitions>
            <transition destinationState="moderation_published" name="moderation_publish">
              <description>Approve the post</description>
            </transition>
            <transition destinationState="moderation_rejected" name="moderation_reject">
              <description>Reject the post</description>
            </transition>
          </transitions>
          <states>
            <state description="Default state" name="moderation_pending">
              <transitions>
                <transition>moderation_publish</transition>
                <transition>moderation_reject</transition>
              </transitions>
            </state>
            <state description="Post published" name="moderation_published"/>
            <state description="Post Rejected" name="moderation_rejected"/>
          </states>
    
        </lifecycle>

    Reject the post

XML Source

<extension point="lifecycle" target="org.nuxeo.ecm.core.lifecycle.LifeCycleService">

    <lifecycle defaultInitial="moderation_pending" name="post_moderation">

      <transitions>
        <transition destinationState="moderation_published" name="moderation_publish">
          <description>Approve the post</description>
        </transition>
        <transition destinationState="moderation_rejected" name="moderation_reject">
          <description>Reject the post</description>
        </transition>
      </transitions>
      <states>
        <state description="Default state" name="moderation_pending">
          <transitions>
            <transition>moderation_publish</transition>
            <transition>moderation_reject</transition>
          </transitions>
        </state>
        <state description="Post published" name="moderation_published"/>
        <state description="Post Rejected" name="moderation_rejected"/>
      </states>

    </lifecycle>

  </extension>